HTMLRenderingLib - Utility routines

 

HRUtilCreateFullURL

OSStatus HRUtilCreateFullURL(
        const char *rootURL,
        const char *linkURL,
        Handle fullURLH);

rootURL - a pointer to a C - style string or NULL if no root is specified.

linkURL - a pointer to a C - style string or NULL if no link is specified.

fullURLH - a handle. This handle must be allocated by the caller before this routine is called. on return the handle will contain a C-style string.

HRUtilCreateFullURL can be called to build a complete URL by combining a root and a link together. The resulting URL is returned in a C-style string stored in the handle you provide in the fullURLH parameter.

return to index

 

HRUtilGetFSSpecFromURL

OSStatus HRUtilGetFSSpecFromURL(
        const char * rootURL,
        const char * linkURL,
        FSSpec * destSpec);
   

rootURL - a pointer to a C - style string or NULL if no root is specified.

linkURL - a pointer to a C - style string or NULL if no link is specified.

destSpec - A file system specification record.

function result - an error code.

HRUtilGetFSSpecFromURL converts a root/link combination into a FSSpec structure referring to a file on disk.

return to index

 

HRUtilGetURLFromFSSpec

OSStatus HRUtilGetURLFromFSSpec(
        const FSSpec *fsspec,
        Handle urlHandle);

fsspec - A pointer to a file system specification record.

urlHandle - a handle. This handle must be allocated by the caller before this routine is called. on return the handle will contain a C-style string.

function result - an error code.

HRUtilGetURLFromFSSpec converts a file system specification record into a URL.

return to index